﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ImapX.Parsing.Tokens;

namespace ImapX.Parsing.DataItems
{
    public class RFC822Size : DataItem
    {
        private Number _size = new Number(false);

        public RFC822Size(bool canBeNIL = false)
            : base(canBeNIL)
        {
            SetParts(_size);
        }

        public int Size
        {
            get
            {
                return _size.Value;
            }
        }

        override public string Command
        {
            get { return "RFC822.SIZE"; }
        }
    }
}
